package br.unipar.academico.jsf.cadastroaluno;

import br.com.uniti.academico.persistence.entity.Curso;
import br.com.uniti.academico.persistence.manager.curso.CursoManager;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;

public class CursoController {

    @Autowired
    private CursoManager cursoManager;

    private CursoReport cursoReport;

    public String relatorio() {
        List<Curso> cursos = cursoManager.buscarTodos();
        cursoReport.visualizar(cursos, "/cursoReport.jasper", "RelatorioDeCurso");
        return "CONSULTA_CURSO";
    }

}
